﻿using System;
using System.Reflection;

namespace BorgExt
{
    public class Plugin : AssemblyElement
    {
        public MetaElementCollection<ExtensionType> ExtensionTypes { get; internal set; }

        public override bool IsQualified
        {
            get { return Qualifier.IsQualified(this); }
        }

        internal Plugin(int id, string name, Assembly assembly, Uri uri, DateTime lastModified)
            : base(id, name, assembly, uri, lastModified)
        { }

        public override bool Qualify()
        {
            return Qualifier.InternalWeakQualify(this);
        }
    }
}

